#example 1
# ** power operator
def f (x): return x**2
print f(8)

#example 2
g = lambda x: x**2
print g(8)
print g(10)

#example 3
sentence = 'It is raining cats and dogs'
words    = sentence.split(' ')
print words

#example 4
lengths  = map(lambda word: len(word), words)
print lengths
